package cpa.prowon.gui.actions;

import cpa.prowon.gui.*;

/**
 * Tis action opens the preferences window which allows to maintain the application
 * properties like loading index on startup, thumbnail preview settings etc.
 * @author Chris
 */
public class PreferencesAction extends PatchedAction {

	/**
	 * Constructor
	 * @param MainWindow The window where the action is used
	 * @author Chris
	 */
	public PreferencesAction(MainWindow w) {
		super(w);
	}

	/**
	 * Return the title key
	 * @return The title key
	 * @author Chris
	 */
	protected String getTitleKey() {
		return "menu_item_file_preferences";
	}

	/**
	 * Return the tooltip key
	 * @return The tooltip key
	 * @author Chris
	 */
	protected String getTooltipKey() {
		return "";
	}

	/**
	 * Return the image key
	 * @return The image key
	 * @author Chris
	 */
	protected String getImageKey() {
		return "";
	}
	
	/**
	 * Run the action
	 * @author Chris
	 */
	public void run() {

		// Create the preferences window and open it
		ConfigurationWindow pw = new ConfigurationWindow(window);
		pw.open();

	}

}
